package com.mvp.lt.airlineview.activity;
import com.mvp.lt.airlineview.base.BaseActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.mvp.lt.airlineview.R;
import com.mvp.lt.airlineview.view.BottonSelectDialog;
import com.mvp.lt.airlineview.view.ListBottomSheetDialogFragment;

import butterknife.BindView;
import butterknife.ButterKnife;


/**
 * <pre>
 * @author zhy
 * http://blog.csdn.net/lmj623565791/article/details/43131133
 * </pre>
 */
public class TextViewActivity extends BaseActivity {


    @BindView(R.id.text_view_tv)
    TextView mTextViewTv;
    int lastX;
    int lastY;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text_view);
        ButterKnife.bind(this);
        mTextViewTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ListBottomSheetDialogFragment listBottomSheetDialogFragment = new ListBottomSheetDialogFragment();
                if (getSupportFragmentManager() != null) {
                    listBottomSheetDialogFragment.show(getSupportFragmentManager(),"bottom");
                }
            }
        });


    }


    public void button(View view) {
        new BottonSelectDialog(this, R.style.ActionSheetDialogStyle);

    }
}
